package com.tom.adapter;

import com.tom.model.req.AnalysisSqlReq;
import com.tom.model.req.ExecuteSqlReq;

import java.util.List;
import java.util.Map;

/**
 * @author zx
 * @date 2024-11-09 18:07
 */
public interface AnalysisSqlService {
    /**
     * 解析SQL
     *
     * @param analysisSqlReq {@link AnalysisSqlReq}
     * @return 解析结果可执行sql
     */
    String analysisSql(AnalysisSqlReq analysisSqlReq);

    /**
     * 执行SQL
     *
     * @param executeSqlReq {@link ExecuteSqlReq}
     * @return 执行结果
     */
    List<Map<String, Object>> executeSql(ExecuteSqlReq executeSqlReq);
}
